/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #D05A6E;
  --primary-light: #F6E7EA;
  --primary-dark: #BA4A5B;
  --text-color: #333;
  --text-light: #8c8c8c;
  --background-light: #f8f9fa;
  --border-color: #e8e8e8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f5f5;
  color: var(--text-color);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 布局样式 */
.logo {
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  margin: 16px 0;
}

/* 表格样式 */
.ant-table {
  border-radius: 8px;
  overflow: hidden;
}

.ant-table-thead > tr > th {
  background-color: #fafafa;
  font-weight: 500;
}

/* 卡片样式 */
.ant-card {
  border-radius: 8px;
  overflow: hidden;
}

/* 表单样式 */
.ant-form-item-label > label {
  font-weight: 500;
}

/* 按钮样式 */
.ant-btn {
  border-radius: 4px;
}

/* 主题色覆盖 */
.ant-btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.ant-btn-primary:hover, 
.ant-btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.ant-checkbox-checked .ant-checkbox-inner {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.ant-radio-checked .ant-radio-inner {
  border-color: var(--primary-color);
}

.ant-radio-inner::after {
  background-color: var(--primary-color);
}

.ant-switch-checked {
  background-color: var(--primary-color);
}

.ant-slider-track {
  background-color: var(--primary-color);
}

.ant-slider-handle {
  border-color: var(--primary-color);
}

.ant-pagination-item-active {
  border-color: var(--primary-color);
}

.ant-pagination-item-active a {
  color: var(--primary-color);
}

.ant-tabs-ink-bar {
  background-color: var(--primary-color);
}

.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: var(--primary-color);
}

.ant-tabs-tab:hover {
  color: var(--primary-color);
}

a {
  color: var(--primary-color);
}

a:hover {
  color: var(--primary-dark);
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
  }
}

.container:after {
  content: "";
  display: table;
  clear: both;
}

/* 确保内容区域正确显示 */
.ant-layout-content {
  position: relative;
  z-index: 1;
}

/* 登录页样式 - 新设计 */
.login-page {
  display: flex;
  min-height: 100vh;
  background-color: #fff;
}

/* 左侧区域 */
.login-left {
  flex: 1;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.login-left-content {
  position: relative;
  z-index: 1;
  padding: 60px;
  max-width: 600px;
}

.login-branding {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.bank-name {
  margin: 0 0 0 16px !important;
  color: white !important;
}

.login-intro {
  margin-bottom: 60px;
}

.login-intro h3 {
  color: white;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 400px;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-icon::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.feature-icon.secure::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'/%3E%3C/svg%3E");
}

.feature-icon.efficient::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/%3E%3C/svg%3E");
}

.feature-icon.professional::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z'/%3E%3C/svg%3E");
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text .ant-typography-secondary {
  color: rgba(255, 255, 255, 0.7);
}

/* 右侧区域 */
.login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background-color: var(--background-light);
}

.login-form-container {
  width: 100%;
  max-width: 420px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  padding: 40px;
}

.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-header h4 {
  margin-bottom: 8px;
}

.login-tabs {
  margin-bottom: 24px;
}

.login-tabs .ant-tabs-nav::before {
  border-bottom: none;
}

.login-tabs .ant-tabs-tab {
  font-size: 16px;
  padding: 12px 0;
}

.login-tabs .ant-tabs-tab + .ant-tabs-tab {
  margin-left: 32px;
}

.login-form .ant-form-item {
  margin-bottom: 20px;
}

.login-form .ant-input-affix-wrapper {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.login-form .ant-input-affix-wrapper:hover,
.login-form .ant-input-affix-wrapper:focus,
.login-form .ant-input-affix-wrapper-focused {
  border-color: var(--primary-color);
  box-shadow: none;
}

.login-form .ant-input-affix-wrapper .ant-input {
  font-size: 14px;
}

.login-form .site-form-item-icon {
  color: #bfbfbf;
}

.form-button {
  margin-top: 24px;
}

.login-form .ant-btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  height: 48px;
  font-size: 16px;
  border-radius: 8px;
}

.login-form .ant-btn-primary:hover,
.login-form .ant-btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.form-actions a {
  color: var(--primary-color);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-col {
  flex: 1;
}

.security-tips {
  text-align: center;
  font-size: 12px;
  margin-top: 16px;
}

.login-footer {
  margin-top: 40px;
  text-align: center;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .login-page {
    flex-direction: column;
  }
  
  .login-left, .login-right {
    flex: none;
  }
  
  .login-left {
    padding: 40px 20px;
  }
  
  .login-left-content {
    padding: 20px;
  }
  
  .login-form-container {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* 仪表盘样式 */
.dashboard-card {
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  margin-bottom: 16px;
}

.dashboard-statistic {
  padding: 8px 0;
}

/* 页面标题样式 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.page-title {
  font-size: 20px;
  font-weight: 500;
}

.action-buttons {
  display: flex;
  gap: 8px;
}
